package lab2.text20;

import java.util.Scanner;

/**
 * Created by Administrator on 2017/10/26.
 */
public class Text {
    public static void main(String[] args) {
        //从键盘输入一行含有数字和字符的字符串
        String result;
        Scanner scanner=new Scanner(System.in);
        result=scanner.next();
        System.out.println(result);
        char tmp;
        int i;
        for(i=0;i<result.length()-1;i++){
            tmp=result.charAt(i);
            if(tmp>'0'&&tmp<='9')
                System.out.print(tmp);
        }
    }
}
